package com.zhang.member.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhang.file.entity.Files;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("user_posts")
public class UserPosts {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("user_id")
    private Long userId;
    @TableField("title")
    private String title;
    @TableField("description")
    private String description;
    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField("status")
    private String status;
    @TableField("label")
    private String label;
    @TableField("sku_id")
    private Long skuId;
    @TableField("show_count")
    private Integer showCount;
    @TableField("cover_id")
    private Integer coverId;
//    封装信息
    @TableField(exist = false)
    private List<Files> files;
    @TableField(exist = false)
    private List<String> fileIds;
}
